package com.friendfeed.api;

import org.json.JSONException;
import org.json.JSONObject;

public class Via {
    private String name;
    private String url;

    public Via(JSONObject jsonObject) throws JSONException {
        name = jsonObject.getString("name");
        url = jsonObject.getString("url");
    }

    public String getName() {
        return name;
    }

    public String getUrl() {
        return url;
    }

    public String toString() {
        return "Via{" +
                "name='" + name + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
